/*
  Copyright 2011 Frogtek BOP LLC

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */

package org.frogtek.database.interfaces;

import java.util.List;

/**
 *
 * @author pfraca
 */
public class Database {

    protected List<IDbAdapter> mAdapters = null;
    protected String mLocalPath = null;
    protected String mName = null;
    protected int mVersion = 1;
    protected int mType = 0;
    protected Database mInstance;

    
    public Database setAdapters(List<IDbAdapter> theAdapters) {
        this.mAdapters = theAdapters;
        return this;
    }

     public Database setLocalPath(String thePath) {
        this.mLocalPath = thePath;
        return this;
    }
    
    public Database setName(String theName) {
        this.mName = theName;
        return this;
    }

    public Database setVersion(int theVersionNumber) {
        this.mVersion = theVersionNumber;
        return this;
    }

    public Database setType(int theType) {
        this.mType = theType;
        return this;
    }


    public List<IDbAdapter> getAdapters() {
        return this.mAdapters;
    }

    public String getDatabaseName() {
        return this.mName;
    }

    public int getDatabaseVersion() {
        return this.mVersion;
    }

    public String getLocalPath() {
        return this.mLocalPath;
    }

    public int getType() {
        return this.mType;
    }
}
